package com.ltu.domain.mp_entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import org.apache.ibatis.type.JdbcType;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ltu.domain.BaseEntity;
import com.ltu.domain.mp_entity.customize.CompanyEntity;

import lombok.experimental.Accessors;

/**
 * <p>
 * 移动端用户
 * </p>
 * @author 若尘
 * @since 2024-03-16
 */
@Accessors(chain = true)
@TableName(value = "sys_user",autoResultMap = true)
@ApiModel(value="UserEntity对象", description="移动端用户")
public class UserEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

		  @ApiModelProperty(value = " name:真实姓名 ")
		 		  private String name;
		 
    	  @ApiModelProperty(value = " nick_name:用户昵称 ")
		 		  private String nickName;
    	  @ApiModelProperty(value = " user_phone:用户手机号 ")
		 		  private String userPhone;
    	  @ApiModelProperty(value = " user_type:账户类型：1普通用户 ")
		 		  private Integer userType;
    	  @ApiModelProperty(value = " status:状态，默认1，0禁用，1启用 ")
		 		  private Byte status;
    	  @ApiModelProperty(value = " login_token:登陆令牌 ")
		 		  private String loginToken;
    	  @ApiModelProperty(value = " remark:备注 ")
		 		  private String remark;
    	  @ApiModelProperty(value = " open_id:微信用户OpenId ")
		 	private String openId;
    	  
    	  @ApiModelProperty(value = " head_photo:头像 ")
		 		  private String headPhoto;
    	  @ApiModelProperty(value = " password:登陆密码 ")
		 		  private String password;
    	  @ApiModelProperty(value = " last_login_time:最后登录时间 ")
		 		  private Integer lastLoginTime;
    	  @ApiModelProperty(value = " login_count:登录次数 ")
		 		  private Integer loginCount;
    	  @ApiModelProperty(value = " role_type:1=普通用户2=聊天群组管理员 ")
		  private Byte roleType;
    	  @ApiModelProperty(value = " 设备ID ")
    	  private Integer deviceId;
    
    	
    
    	  
    	  
//    	  @ApiModelProperty(value = " parent_user_id:分享人id ")
//		 		  private Integer parentUserId;
//    	  
//    	  @ApiModelProperty(value = "分享人名称 ")
//    	  private String parentUserName;
//    	  @ApiModelProperty(value = "分享人手机号")
//    	  private String parentUserPhone;
    	  
    	  @ApiModelProperty(value = " code:code ")
		 		  private String code;

    	  @ApiModelProperty(value = " create_time:注册时间 ")
		 		  private Date createTime;
    	  @ApiModelProperty(value = " update_time:更新时间 ")
		 		  private Date updateTime;
    	  @ApiModelProperty(value = " del_flag:是否已删除0否1是默认0 ")
		 		  private Integer delFlag;
    	  @TableField(exist = false)
    	private Integer totalFee;
     	  @TableField(exist = false)
      	private Integer sessionId;
    	  @ApiModelProperty(value = " device_mac:设备码 ")
 		  private String deviceName;
  
    	  
 
    	
      	  
     
    	  
		public String getDeviceName() {
			return deviceName;
		}
		public void setDeviceName(String deviceName) {
			this.deviceName = deviceName;
		}
		public Integer getDeviceId() {
			return deviceId;
		}
		public void setDeviceId(Integer deviceId) {
			this.deviceId = deviceId;
		}
		public Integer getSessionId() {
			return sessionId;
		}
		public void setSessionId(Integer sessionId) {
			this.sessionId = sessionId;
		}
		/**
		 * 真实姓名
		 */
	    public String getName() {
	        return name;
	    }
		/**
		 * 真实姓名
		 */
	    public UserEntity setName(String name) {
	       this.name = name;
	        return this;
	    }
		/**
		 * 用户昵称
		 */
	    public String getNickName() {
	        return nickName;
	    }
		/**
		 * 用户昵称
		 */
	    public UserEntity setNickName(String nickName) {
	       this.nickName = nickName;
	        return this;
	    }
		/**
		 * 用户手机号
		 */
	    public String getUserPhone() {
	        return userPhone;
	    }
		/**
		 * 用户手机号
		 */
	    public UserEntity setUserPhone(String userPhone) {
	       this.userPhone = userPhone;
	        return this;
	    }
		/**
		 * 账户类型：1普通用户
		 */
	    public Integer getUserType() {
	        return userType;
	    }
		/**
		 * 账户类型：1普通用户
		 */
	    public UserEntity setUserType(Integer userType) {
	       this.userType = userType;
	        return this;
	    }
		/**
		 * 状态，默认1，0禁用，1启用
		 */
	    public Byte getStatus() {
	        return status;
	    }
		/**
		 * 状态，默认1，0禁用，1启用
		 */
	    public UserEntity setStatus(Byte status) {
	       this.status = status;
	        return this;
	    }
		/**
		 * 登陆令牌
		 */
	    public String getLoginToken() {
	        return loginToken;
	    }
		/**
		 * 登陆令牌
		 */
	    public UserEntity setLoginToken(String loginToken) {
	       this.loginToken = loginToken;
	        return this;
	    }
		/**
		 * 备注
		 */
	    public String getRemark() {
	        return remark;
	    }
		/**
		 * 备注
		 */
	    public UserEntity setRemark(String remark) {
	       this.remark = remark;
	        return this;
	    }
		/**
		 * 微信用户OpenId
		 */
	    public String getOpenId() {
	    	
	        return this.openId;
	    }
	    
		/**
		 * 微信用户OpenId
		 */
	    public UserEntity setOpenId(String openId) {
	    	
	    	this.openId=openId;
	    	return this;
	    }
	    
		/**
		 * 头像
		 */
	    public String getHeadPhoto() {
	        return headPhoto;
	    }
		/**
		 * 头像
		 */
	    public UserEntity setHeadPhoto(String headPhoto) {
	       this.headPhoto = headPhoto;
	        return this;
	    }
		/**
		 * 登陆密码
		 */
	    public String getPassword() {
	        return password;
	    }
		/**
		 * 登陆密码
		 */
	    public UserEntity setPassword(String password) {
	       this.password = password;
	        return this;
	    }
		/**
		 * 最后登录时间
		 */
	    public Integer getLastLoginTime() {
	        return lastLoginTime;
	    }
		/**
		 * 最后登录时间
		 */
	    public UserEntity setLastLoginTime(Integer lastLoginTime) {
	       this.lastLoginTime = lastLoginTime;
	        return this;
	    }
		/**
		 * 登录次数
		 */
	    public Integer getLoginCount() {
	        return loginCount;
	    }
		/**
		 * 登录次数
		 */
	    public UserEntity setLoginCount(Integer loginCount) {
	       this.loginCount = loginCount;
	        return this;
	    }
		/**
		 * 
		 */
	    public Byte getRoleType() {
	        return roleType;
	    }
		/**
		 * 
		 */
	    public UserEntity setRoleType(Byte roleType) {
	       this.roleType = roleType;
	        return this;
	    }


		/**
		 * code
		 */
	    public String getCode() {
	        return code;
	    }
		/**
		 * code
		 */
	    public UserEntity setCode(String code) {
	       this.code = code;
	        return this;
	    }
		
		/**
		 * 注册时间
		 */
	    public Date getCreateTime() {
	        return createTime;
	    }
		/**
		 * 注册时间
		 */
	    public UserEntity setCreateTime(Date createTime) {
	       this.createTime = createTime;
	        return this;
	    }
		/**
		 * 更新时间
		 */
	    public Date getUpdateTime() {
	        return updateTime;
	    }
		/**
		 * 更新时间
		 */
	    public UserEntity setUpdateTime(Date updateTime) {
	       this.updateTime = updateTime;
	        return this;
	    }
		/**
		 * 是否已删除0否1是默认0
		 */
	    public Integer getDelFlag() {
	        return delFlag;
	    }
		/**
		 * 是否已删除0否1是默认0
		 */
	    public UserEntity setDelFlag(Integer delFlag) {
	       this.delFlag = delFlag;
	        return this;
	    }
		public void setTotalFee(Integer totalFee) {
			// TODO Auto-generated method stub
			this.totalFee= totalFee;
		}
		public Integer getTotalFee() {
			return totalFee;
		}




}
